package ch.unifr.dokpe.htmlpicker.dataformater;
/**
 *Cut the text found after $a 
 */

public class MarcDataFormater extends DataFormater {
	public MarcDataFormater(String label){super(label);}

	public String formatdata(){
	   
	   String result = data.get(label);
	   int pos = result.indexOf("$a ");
	   if (pos>-1) {
		   result = result.substring(pos+3).trim();
	   }
	   return result;
	}

}
